<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>Las frases míticas de CITIC</title>
  <style type="text/css">
    body {
	padding: 10px;
	background-color: #ffffff;
	font-family: Georgia, "Times New Roman", serif;
	}
   
    h1 {
	border-bottom: 5px double #700e0e;
	color: #700e0e;
	margin: 5px;
	text-align: center;
	}

    h2 {
	color: #700e0e;
	margin: 2px;
	font-family: Tahoma, "Arial", sans-serif;
	font-weight: bold;
	}

    .divpagination {
	width: 200px;
	height: 20px;
	margin: auto;
	padding: 5px;
	background-color: #ffffff;
  	}

    .divspacing {
	height: 200px;
	}

    .container {
	width: 800px;
	margin-top: 20px;
	padding: 0px;
	border: 0px solid #000;
	background-image: url('/miticas/static/mythical-header.jpg');
	background-repeat: no-repeat;
	margin-left: auto;
	margin-right: auto;
	}
    
    .post {
	margin: 20px;
	border-top: 1px solid #0e3570;
	padding: 3px;
	}
	
    .pagenumber {
	margin: auto;
	border: 1px solid #999;
	background-color: #eee;
	padding: 3px;
	float: left;
	}

    .phrase {
	font-family: Georgia, "Times New Roman", serif;
	margin-left: 5px;
	border: 1px solid #000;
	background-color: #ddd;
	padding: 4px;
	text-align: justify;
	color: #000;
	}

    a {
	color: #700e0e;
	}

    a:hover {
	background-color: #700e0e;
	color: #FF6965;
	}

    a:visited {
	color: #0e3570;
	}

    .phraselink {
	color: #700e0e;
        margin: 2px;
        font-family: Tahoma, "Arial", sans-serif;
        font-weight: bold;
	}

    .phraselink a:visited {
	color: #0e3570;
	margin: 2px;
	font-family: Tahoma, "Arial", sans-serif;
	font-weight: bold;
	}

    .date {
	font-family: Tahoma, "Arial", sans-serif;
	font-style: oblique;
	font-size: small;
	color: #000;
	}

    .rsslink {
	text-size: small;
	text-align: center;
	}

    .inputbox {
	margin: 5px;
	padding: 5px;
	border-top: 1px solid #0e3570;
	}

    .subtitle {
	padding: 3px;
	border: 0px solid #fff;
	color: #700e0e;
	}

    ul {
	border:0; margin:0; padding:0;
	}

    #pagination li {
	border:0; margin:0; padding:0;
	font-size:11px;
	list-style:none;
	}

    #pagination a {
	border:solid 1px #690805;
	margin-right:2px;
	background-color: #FF6965;
	}

    #pagination .previous-off,
    #pagination .next-off {
	color:#457449;
	display:block;
	float:left;
	font-weight:bold;
	padding:3px 4px;
	}
	
    #pagination .next a,
    #pagination .previous a {
	font-weight:bold;
	border:solid 1px #690805;
	}
	
    #pagination .active {
	color:#693305;
	font-weight:bold;
	display:block;
	float:left;
	padding:4px 6px;
	border: 1px solid #693305;
	background-color: #FFAC65;
	}
	
    #pagination a:link,
    #pagination a:visited {
	color:#690805;
	display:block;
	float:left;
	padding:3px 6px;
	text-decoration:none;
	}
	
    #pagination a:hover {
	border:solid 1px #FF6965;
	background-color: #690805;
	color: #FF6965;
	}

    .comment {
	margin: 10px;
	margin-left: 30px;
	border: 0px solid #fff;
	padding: 3px;
	}

  </style>
  <script language='javascript'>
   function verifyMe(){
        var msg='';

	if(document.getElementById('content').value==''){
		msg+='- Comentario:\n\n';}

	if(msg!=''){
		alert('Los siguiente campos estan vacios o son invalidos:\n\n'+msg);
		return false
	}else{
		return true }

	}
  </script>
</head>
<body>
<div class='container'><div class='divspacing'></div>
 <h1><a href="/miticas" class='title'>Volver</a></h1>
  <div class='post'>
   <h2>Frase m&iacute;tica n&uacute;mero {{ phrase.id }}:</h2>
   <p class='phrase'>&quot;{{ phrase.phrase }}&quot;</p>
   <hr />
   <p class='date'>{{ phrase.date }}</p>
  </div>
 <h2>Comentarios:</h2>
 {% for comment in comments %}
  <div class='comment'>
   <p class='phrase'>&quot;{{ comment.content }}&quot;</p>
   <hr />
   <p class='date'>{{ comment.date }}</p>
  </div>
 {% endfor %}
 <div class='inputbox'>
  <h2>Escribe tu comentario:</h2>
	<form name='formulario_envio' action={{ '/miticas/phrase/' ~ phrase.id ~ '/comment/'}} method='POST' enctype='application/x-www-form-urlencoded' onsubmit='return verifyMe();'>
	<table cellspacing='0'>
		<tr>	<td></td>
			<td>
				<p><em>Puedes usar bbcode para realzar tus comentarios...</em></p>
			</td>
		</tr>
		<tr>
			<td valign='top'><LABEL for='comment' ACCESSKEY='none' ><b style='color:red'>*</b>Comentario:
			</td>
			<td><textarea name='comment' cols='42' rows='6' value=''></textarea>
			</td>
		</tr>
		<tr>
			<td colspan='2' align='right'><input type='submit' name='submit' value='Enviar'>&nbsp;<input type='reset' name='reset' value='Limpiar'><br /><a href='http://www.formgenics.com' style='font-family:arial;font-size:10px;color:#C0C0C0;text-decoration:none'>powered by FormGenics.com</a>
			</td>
		</tr>
	</table>
	</form>
  </div>
</div>
</body>
</html>
